"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
function show(num1, name) {
    var res = num1 + name;
}
// 函数签名
function show2(user, students) {
    console.log(user.id);
}
show2({ id: 1 }, [1, 2, 3]);
function show3(num1) {
    var args = [];
    for (var _i = 1; _i < arguments.length; _i++) {
        args[_i - 1] = arguments[_i];
    }
    console.log(num1); //1
    console.log(args); //2,3,4,5
}
show3(1, 2, 3, 4, 5, 6);
// 函数的返回值
function show4(num1, num2) {
    return num1 + num2 + "";
}
var res = show4(10, 20);
function show5(num1, num2) {
    console.log(num1 + num2);
}
show5(1, 2);
function show6(num1, num2) {
    console.log(num1 + num2);
    var arr = [];
    arr.push(num1);
    arr.push(num2);
    return arr;
}
var res3 = show6(1, 4);
function show7(fun1) {
    fun1();
}
